/**
 * 
 */
package org.cuatrovientos.erp.model;

import java.sql.Date;

import javax.validation.constraints.Past;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author Daniel Lacasta
 */
public class IssueType {
	@NotNull(message="{issue.id.error}")
	private int id;
	
	@Size(min=1,max=50,message="{issue.name.error}")
	private String name;
	
	@Size(min=1,max=100,message="{issue.description.error}")
	private String description;
	
	
	/**
	 * Nothing constructor.
	 */
	public IssueType(){
		
	}
	/**
	 * Full constructor
	 * @param id
	 * @param name
	 * @param description
	 */
	public IssueType(int id, String name, String description, Date date,
			int idIssueType) {
		super();
		this.id = id;
		this.name = name;
		this.description = description;
	}
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	  
	
	
	
}
